
public class Test {
	public static void main(String[] args){
		
		char[][] a = { { 'A', 'B', 'A' }, { 0, 'B', 0 },
				{ 0, 0, 0 } };
		
		StyleBox sb = new StyleBox(a);
		System.out.println("***********");
		System.out.println(sb.calcWeight('B', 'A'));
	}
}
